<?
#
# author: Cody Sorgenfrey with Jason Sanchez
# (c) 2012 Casa De Bendicion
#

include_once("common.php");

$title= "Donate";
$metaKey=null;
$metaDesc="Support the Orphanage in Bachiniva Mexico.";
$moreHtml=null;
$moreJava="<script type='text/javascript'>window.onload = function() {calculatePreviewFee(); calculateFee();}</script>";

startPage($title, $metaKey, $metaDesc, $moreHtml, $moreJava, "<font color='#1D97C3'>03 </font>".$title);

$code = "<h4 style='font-size:200%; font-weight:normal;'><ul style='list-style:none;'><a id='onBlue' href='http://blog.thehouseofblessing.org'><li><font color='black'>01</font> PRAY</li></a><a id='onBlue' href='/travel.php'><li><font color='black'>02</font> TRAVEL</li></a><a id='onBlue' href='/give.php'><li><font color='black'>03</font> DONATE</li></a></ul></h4>";

$paypal = '
<div align="left">
		<br/>
		<form action="https://www.paypal.com/cgi-bin/webscr" method="get" style="color:white;">
		<input type="hidden" id="command" name="cmd" value="_xclick-subscriptions">
		<input type="hidden" name="business" value="ZA3X5L9YSBD8J">
		<input type="hidden" name="lc" value="US">
		<input type="hidden" name="item_number" value="cdb-general">
		<input id="itemName" type="hidden" name="item_name" value="CDB Recurring General Donation">
		<input type="hidden" name="custom" value="cdb-general">
		<input type="hidden" name="no_note" value="1">
		<input type="hidden" name="no_shipping" value="2">
		<input type="hidden" name="rm" value="1">
		<input type="hidden" name="return" value="http://www.southhillcalvary.org">
		<input type="hidden" name="cancel_return" value="http://www.southhillcalvary.org">
		<input type="hidden" name="src" value="1">
		<input type="hidden" name="p3" value="1">
		<input type="hidden" name="currency_code" value="USD">
		<input type="hidden" name="page_style" value="CDB">
		<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
		<p>What is this donation for?</p>
		<input checked="checked" type="radio" name="tier2" value="General Donation" onclick="checkForOneTime()" /> General Donation<br>
		<input type="radio" name="tier2" value="Other" onclick="checkForOneTime()" /> <input type="text" placeholder="Other" onkeyup="$(this).prev().val($(this).val()); checkForOneTime()" />
		<p>How many times would you like this to recur? (including this payment)</p>
		<select id="times" name="srt" onchange="checkForOneTime()">
			<option value="0">Never End</option>
			<option value="1">This Time Only</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="4">4</option>
			<option value="5">5</option>
			<option value="6">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
			<option value="9">9</option>
			<option value="10">10</option>
			<option value="11">11</option>
			<option value="12">12</option>
		</select>
		<br>
		<span id="recurring">
			<p>When would you like this to Recur?</p>
			<select id="when" name="t3">
				<option value="W">Weekly</option>
				<option value="M" selected="selected">Monthly</option>
				<option value="Y">Yearly</option>
			</select>
			<br>
		</span>
		<p>Enter Your Donation Amount:</p>
		$<input id="cash" type="text" name="textField" maxlength="200" onkeyup="calculatePreviewFee()" value="0.00">
		&nbsp;<input type="checkbox" name="addFee" id="addFee" onclick="calculateFee()"> Cover credit card processing fee ($<span id="preview">0.30</span>). 
		<br><br>
		$<span id="donation">0.00</span> donation
		<br>
		$<span id="feeCovered">0.00</span> extra to cover fee
		<hr width="75px" align="left">
		$<span id="total" >0.00</span> total
		<br><br>
		<input type="hidden" id="finalTotal" maxlength="200" name="a3" value="0.00">
		<input type="image" src="/images/Donate.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" onclick="getTotalDonation()">
		<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
		</form>	
	</div>
';

$checks = '<p>To donate by check, make payable to "South Hill Calvary Chapel" with "Mexico Orphanage" as the Memo. Please send checks to...<br><br>

South Hill Calvary Chapel<br>
1902 S. Meridian<br>
Puyallup WA 98371<br>
</p>';

$paragraph = 'Paul wrote in his letter to the church in Philippi, <i><font color="black">"...and my God shall supply ALL your need according to His riches in glory by Christ Jesus"</font></i> (Phil 4:19).<br><br>

In Matthew chapter 6, Jesus encourages us that as we <i><font color="black">"...seek first the kingdom of God and His righteousness, ALL things shall be added"</font></i> (Matt 6:33).<br><br>

Since the beginning of time, God has been faithful to His word and promises that He will take care of his children.  We believe with all our heart that He will continue to remain faithful to those promises until the end. The exciting part is watching the ways in which He chooses to fulfill those promises.<br><br>

Should the Lord put on your heart to give financially to the orphanage, you may do so in one of two ways: via sending a check to South Hill Calvary Chapel or by paypal. Throughout the year, we also collect donations such as school supplies, clothing, fabric, toys, etc.  Please contact Jason to see what specific needs there might be.</br>'.$paypal.$checks;

$first = mainBox($paragraph, "autoBox", "0px");
$second = verseBox("0px", $code, null, "linkBox");
$third = "<div style='height:5px; width:705px;'></div>";
$fourth = "<div style='height:5px; width:250px;'></div>";
printPageTable($first, $second, $third, $fourth);
endPage();
?>